package com.avfh.netcard.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wuhui
 * @since 2017-06-26
 */
@TableName("bd_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
	private Long userId;
    /**
     * 真实姓名
     */
	@TableField("real_name")
	private String realName;
    /**
     * 手机号码
     */
	private String telephone;
    /**
     * 身份证号码
     */
	@TableField("id_card")
	private String idCard;
    /**
     * sim卡
     */
	private String sim;
	@TableField("created_at")
	private Date createdAt;
	@TableField("updated_at")
	private Date updatedAt;


	public Long getUserId() {
		return userId;
	}

	public User setUserId(Long userId) {
		this.userId = userId;
		return this;
	}

	public String getRealName() {
		return realName;
	}

	public User setRealName(String realName) {
		this.realName = realName;
		return this;
	}

	public String getTelephone() {
		return telephone;
	}

	public User setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}

	public String getIdCard() {
		return idCard;
	}

	public User setIdCard(String idCard) {
		this.idCard = idCard;
		return this;
	}

	public String getSim() {
		return sim;
	}

	public User setSim(String sim) {
		this.sim = sim;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public User setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public User setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public static final String USER_ID = "user_id";

	public static final String REAL_NAME = "real_name";

	public static final String TELEPHONE = "telephone";

	public static final String ID_CARD = "id_card";

	public static final String SIM = "sim";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

}
